import request from '../request'

export function register(username: string, password: string) {
    return request({
        method: 'post',
        headers: {
            'Content-Type': 'application/json',
        },
        url: '/user/register',
        data: {
            username,
            password,
        },
    })
}
